import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false
Vue.filter('myfilter', function (data, format) {
    console.log(data, format)
    return data.replace('真好', '**')
})
Vue.directive('color', {
    bind(el, binding) {
        el.style.color = binding.value;
    },
    inserted(el) {
        el.onkeydown=function (){
            console.log(1);
        }

    },
    update(el) {
        console.log(el);
    }
})
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
